package com.sixteen.theGreat.workbench.mapper;

import com.sixteen.theGreat.workbench.entity.TalkRemark;

import java.util.List;

public interface TalkRemarkMapper {
    /**
     * 添加评论
     * @param talkRemark 要添加的评论所封装到的实体类
     * @return 影响记录的条数
     */
    int insertTalkRemark(TalkRemark talkRemark);

    /**
     * 根据talkId和userId的查询评论
     * @param talkId
     * @return
     */
    List<TalkRemark> selectTalkRemarkByTalkId(String talkId);
}
